qinglan.Canvas.Font = qinglan.Canvas.Sprite.extend(function(id, position,opt){

	this.msg = opt.msg || 'undefined';
	this.color = opt.color || qinglan.Canvas.Color.black;
	this.size =( opt.size || 14 ) + 'px';
	this.font = opt.font || 'sans-serif';
	this.textAlign = opt.align || 'left';
	
	this.shadowColor = opt.shadowColor || new qinglan.Canvas.Color(0,0,0,0);
	this.shadowOffsetX = opt.shadowOffsetX || '5';
	this.shadowOffsetY = opt.shadowOffsetY || '5';
	this.shadowBlur = opt.shadowBlur || '2';


}).methods({
	update: function(ctx) {

	},
	draw: function(ctx) {
		ctx.font = this.size + ' ' + this.font;
		ctx.fillStyle = this.color.getColorString();
		ctx.textAlign = this.textAlign;
		ctx.fillText(this.msg,0,0);
	},
	distory: function(){

	}
})
